﻿using Away.IdentityServer.Core.Repositories.DB.UserEntities;

namespace Away.IdentityServer.Core.Api;

public static class UserApi
{
    /// <summary>
    /// 用户接口
    /// </summary>
    /// <param name="endpoint"></param>
    /// <returns></returns>
    public static IEndpointRouteBuilder MapUserApi(this IEndpointRouteBuilder endpoint)
    {
        endpoint.MapGroup("user")
            .MapIdentityApi<UserEntity>();
        return endpoint;
    }
}
